//首页设计
let home_fn=async(cxt,next)=>{
    cxt.response.body=
    `
    <h1>首页逻辑</h1>
    <form action="/login/login" method="POST">
        <div>
            <label for="">账号：</label>
            <input type="text" name="username">
        </div>
        <div>
            <label for="">密码：</label>
            <input type="password" name="password">
        </div>
        <div>
            <input type="submit" value="登录">
        </div>
    </form>
    `;
}
//通过路由把这个文件暴露出去
module.exports={
    '/':['get',home_fn]
}